#include "../sock.h"

sockparams * params;

void fb(void * data)
{
  printf ("data received\n");
  int sodata = 4365;
  write(params->sockin, &sodata, sizeof(int));
}

int main (void)
{
  params = bk_serverinit(5467, 0, 10);
  params->callback = fb;

  printf ("iface.params->sock = %i\n",params->sock);

  while (1)
    {
      bk_serverstep(params, 4);
    }
  
  return 0;
}
